package org.example.myleet.p414;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(1 == solution.thirdMax(new int[]{3, 2, 1}));
        Assert.isTrue(2 == solution.thirdMax(new int[]{2, 1}));
        Assert.isTrue(2 == solution.thirdMax(new int[]{1, 2}));
        Assert.isTrue(1 == solution.thirdMax(new int[]{2, 2, 3, 1}));
        Assert.isTrue(2 == solution.thirdMax(new int[]{1,2,2,5,3,5}));
        Assert.isTrue(1 == solution.thirdMax(new int[]{-2147483648,1,1}));
        Assert.isTrue(4 == solution.thirdMax(new int[]{5,2,4,1,3,6,0}));
    }
}
